import Vue from "vue"
import Vuex from "vuex"

import home from "@/store/home/index.js"
import search from "@/store/search/index.js"
import detail from '@/store/detail/index.js'
import shopcart from "@/store/shopcart/shopcart.js"
import register from '@/store/LoginorRegister/index.js'
import trade from '@/store/trade/index.js'

Vue.use(Vuex)


export default new Vuex.Store({
  modules: {
    home,
    search,
    detail,
    shopcart,
    register,
    trade
  }
})